package com.shisfish.library.Impl;

import java.util.List;

import org.springframework.context.ApplicationContext;

import com.shisfish.library.Inter.IBookMoreInter;
import com.shisfish.library.Model.BookMore;
import com.shisfish.library.Utils.Global.GetACXmlUtils;

public class BookMoreImpl implements IBookMoreInter {

	private ApplicationContext ac = GetACXmlUtils.getACXml();
	IBookMoreInter mapper = (IBookMoreInter) ac.getBean("bookMoreMapper");

	@Override
	public int insertOne(BookMore t) {
		// TODO Auto-generated method stub
		return mapper.insertOne(t);
	}

	@Override
	public int insertAll(List<BookMore> list) {
		// TODO Auto-generated method stub
		return mapper.insertAll(list);
	}

	@Override
	public int updateOne(BookMore t) {
		// TODO Auto-generated method stub
		return mapper.updateOne(t);
	}

	@Override
	public int updateAll(List<BookMore> list) {
		// TODO Auto-generated method stub
		return mapper.updateAll(list);
	}

	@Override
	public List<BookMore> selectById(int id) {
		// TODO Auto-generated method stub
		return mapper.selectById(id);
	}

	@Override
	public List<BookMore> selectByKey(String key) {
		// TODO Auto-generated method stub
		return mapper.selectByKey(key);
	}

	@Override
	public List<BookMore> selectAll() {
		// TODO Auto-generated method stub
		return mapper.selectAll();
	}

	@Override
	public int deleteOneById(int id) {
		// TODO Auto-generated method stub
		return mapper.deleteOneById(id);
	}

	@Override
	public int deleteAllById(List<?> ids) {
		// TODO Auto-generated method stub
		return mapper.deleteAllById(ids);
	}

	@Override
	public int deleteOneByKey(String key) {
		// TODO Auto-generated method stub
		return mapper.deleteOneByKey(key);
	}

	@Override
	public int deleteAllByKey(List<?> keys) {
		// TODO Auto-generated method stub
		return mapper.deleteAllByKey(keys);
	}

	@Override
	public int countAll() {
		// TODO Auto-generated method stub
		return 0;
	}

}
